package com.lhs.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.lhs.entity.blog.blog_post;
import org.springframework.transaction.annotation.Transactional;

public interface BlogViewService extends IService<blog_post> {

    @Transactional
        // 声明式事务
    void incrementViewCount(Long postId, Long userId);

    Long getBlogViewCount(Long postId);
}
